Variables to be imported from the outside environment are specified in the use clause of the closure function definition.
从外部环境中导入的变量是在闭包函数定义的use子句中指定的。
We can mix variables passed by value and by reference easily within the use clause, and they will be handled without any problem.
我们可以将按值和按引用传递的变量轻松地混合到 use 子句中,并且可以顺利地处理这些变量。
OK, so far though, I've just shown you what happens inside a peace a code. It raises an exception. It goes to that accept clause. We don't have to use it just inside of one place.
好了,我已经给你们看了,代码内部发生了什么,它报了一个异常,然后就到了处理的片段,我们不该就在一个地方用它。
应用推荐